import request from "@/utils/request";

// 查询后台导入用户白名单列表
export function listWhite(query) {
  return request({
    url: "/cancel/userWhite/list",
    method: "get",
    params: query,
  });
}

// 查询后台导入用户白名单详细
export function getWhite(id) {
  return request({
    url: "/cancel/userWhite/" + id,
    method: "get",
  });
}

// 新增后台导入用户白名单
export function addWhite(data) {
  return request({
    url: "/cancel/userWhite/add",
    method: "post",
    data: data,
  });
}

// 删除后台导入用户白名单
export function delWhite(id) {
  return request({
    url: "/cancel/userWhite/" + id,
    method: "delete",
  });
}

export function updateWhite(data) {
  return request({
    url: "/cancel/userWhite/edit",
    method: "put",
    data,
  });
}
